/**
 * Created by zhangqingxi on 2017-04-01.
 */

$(function () {
    initSolidWasteType();
    $('#solidWasteTypeId').combobox({
        onChange:function (newValue,oldValue) {
            if(newValue==0){
                $('#div_hazardousWasteTypeId').html('');
            }else{
                $('#div_hazardousWasteTypeId').html(template('hazardousWasteTemplate',[]));
                initHazardousWasteType();
            }
        }
    });

    initFormReset();
    initSaveClick(modelPath+'add.shtml');

});